import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Vant from 'vant';
import { Lazyload } from 'vant';
import { Toast } from 'vant';
import { Dialog } from 'vant';
import 'vant/lib/index.css';
import 'lib-flexible'
import $ from "jquery"

// 全局注册
Vue.use(Dialog);

//路由守卫
import "./permission.js"

Vue.use(Vant);
Vue.use(Lazyload, {
  lazyComponent: true,
});
Toast.setDefaultOptions({ duration: 2000 });
Vue.prototype.$ = $;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");

